import React from 'react';
import { Router, Route, Switch } from 'dva/router';
import IndexPage from './routes/IndexPage';
import Bookmark from './pages/Bookmark/views/List';
import DemoCounter from './pages/Demo/views/Counter';

function RouterConfig({ history }) {
  return (
    <Router history={history}>
      <Switch>
        <Route path="/" exact component={IndexPage} />
        <Route path="/bookmark" exact component={Bookmark} />
        <Route path="/demo/counter" exact component={DemoCounter} />
      </Switch>
    </Router>
  );
}

export default RouterConfig;
